<template>
  <el-container>
    <el-header height="80px">
      <ToolBar />
    </el-header>
    <el-container>
      <el-aside width="300px">
        <MaterialArea />
      </el-aside>
      <el-main>
        <EditorArea />
      </el-main>
      <el-aside width="300px">
        <AttributeArea />
      </el-aside>
    </el-container>
  </el-container>
</template>

<script>
import EditorArea from "@/components/editorArea";
import ToolBar from "@/components/layout/ToolBar.vue";
import AttributeArea from "@/components/layout/AttributeArea";
import MaterialArea from "@/components/layout/MaterialArea";
export default {
  components: {
    EditorArea,
    ToolBar,
    AttributeArea,
    MaterialArea,
  },
  methods: {},
};
</script>
<style>
.el-header {
  color: #333;
  text-align: center;
  background-color: #b3c0d1;
  line-height: 80px;
}

.el-aside {
  background-color: #ffffff;
  color: #333;
  text-align: center;
  height: calc(100vh - 80px);
}

.el-main {
  background-color: #f5f5f5;
  color: #333;
  /* 屏幕高度减去顶部工具栏的高度 */
  height: calc(100vh - 80px);
}
</style>
